home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
NUM2COLO.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
45 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Num2Color( nColor ) --> cColor
PARAMETERS:
nColor : Color number (NOT Clipper Color #, per se: see description)
SHORT:
Convert Clipper INTERNAL color number to color string.
DESCRIPTION:
_Num2Color() translates the numbers that Clipper uses internally to represent
color ATTRIBUTES. THIS IS NOT THE SAME THING AS CLIPPER'S COLOR NUMBERS (ie,
0-Black, 1-Blue, etc).
nColor is usually extracted from a savescreen() coordinate, and the number
represents a complete color attribute, not an individual color.
For instance, the number 202 represents " G+* / R " to Clipper. This function
is used by _ColorSay() which shows it's correct usage.
Do NOT feed this function Clipper @ SAY/GET color numbers! Psychadelic-drug
hallucination-like mayhem may result! But, hey, it might be interesting to
try it anyway!
NOTE:
EXAMPLE:
_Num2Color(substr(screensave(5,10,5,10),2,1))
Result: The current color attribute at 5,10 is returned as a color
string: FORE/BACK.
******************************************************************************/